package com.smsc.headend.task.engine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smsc.headend.module.asset.entity.ConfigDcuTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

/**
 * (接口定义)
 *
 * @author wjh
 * @date 2022/7/15 17:57.
 */
public interface ConfigDcuTemplateMapper extends BaseMapper<ConfigDcuTemplate> {
    @Select("SELECT ${templateColName} FROM M_CONFIG_DCU_TEMPLATE WHERE DCU_ID = #{dcuId}")
    @ResultType(Long.class)
    Long getDcuTemplateId(@Param("dcuId")Long dcuId, @Param("templateColName") String templateColName);
}
